//
//  CommonTFView.m
//  DouLinBusiness
//
//  Created by ypj on 2021/4/9.
//

#import "CommonTFView.h"

@implementation CommonTFView
-(void)awakeFromNib{
    [super awakeFromNib];
     self.contentTF.delegate=self;
     self.contentTF.returnKeyType=UIReturnKeyDone;
     self.iconImage.hidden=YES;
     [self.bgView createBordersWithColor:nil withCornerRadius:5.0 andWidth:0];
    

}
+ (instancetype)shareInstance{
    return [[NSBundle mainBundle] loadNibNamed:@"CommonTFView" owner:nil options:nil][0];
}
-(void)placeholdText:(NSString *)placeText withTitle:(NSString *)title{
    self.titleLb.text=title;
    self.contentTF.placeholder=placeText;
}
#pragma mark  把输入的值和完没完成的bool变量传过去
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
     return YES;
}
@end
